package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsQuestionItem = "cms_question_item"

func init() {
	var r = &CmsQuestionItem{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsQuestionItem struct {
	ItemId       int    `form:"itemId" column:"item_id" primary:"true" modify:"false" json:"itemId"`
	QuestionId   int    `column:"question_id" modify:"true" json:"questionId" form:"questionId"`
	Code         string `json:"code" form:"code" column:"code" modify:"true"`
	Item         string `json:"item" form:"item" column:"item" modify:"true"`
	OnlineStatus int    `column:"online_status" modify:"true" json:"onlineStatus" form:"onlineStatus"`
	Status       int    `form:"status" column:"status" modify:"true" json:"status"`
	CreateTime   string `form:"createTime" column:"create_time" modify:"false" json:"createTime"`
	UpdateTime   string `column:"update_time" modify:"false" json:"updateTime" form:"updateTime"`
}

func (r *CmsQuestionItem) Name() string {
	return RecordNameCmsQuestionItem
}
